#include <iostream>
#include <cstring>
#define maxn 110
using namespace std;

int main()
{
	int i,j,n,c[maxn][maxn];
	cin>>n;
	memset(c,0,sizeof(0));
	c[0][0]=1;c[1][0]=1;c[1][1]=1;
	for(i=2;i<n;i++)
	{
		c[i][0]=1;
		for(j=1;j<=i;j++)
		c[i][j]=c[i-1][j-1]+c[i-1][j];
	
	}
	for(i=0;i<n;i++)
	{
		for(j=0;j<=i;j++)
		cout<<c[i][j]<<" ";
		cout<<endl; 
	}
}
